home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 12 / CU Amiga Magazine's Super CD-ROM 12 (1997)(EMAP Images)(GB)[!][issue 1997-07].iso / CUCD / Games / DestructivePoker / sources / sources.lha / savefile.h < prev   
C/C++ Source or Header  |  1997-04-02  |  741b  |  31 lines

  1. /*
  2.         savefile.h
  3.  
  4.         V1.00 - 290197  Kimmo Teräväinen
  5.         -----   ------  ----------------
  6.         V0.01   290197  Started.
  7.         V0.10   300197  Tested. Crypt not done.
  8.         V0.11   010497  BUG FIXED: File was not closed properly.
  9.                         This means that if there is not f.close()
  10.                         file lock remains and causes savefile unreadable
  11.                         until reset...
  12. */
  13. #ifndef DC1_POKER_SAVEFILE
  14. #define DC1_POKER_SAVEFILE
  15.  
  16. class cSaveFile {
  17.   const char *name;
  18.   int   points;
  19. public:
  20.   cSaveFile(const char *Name) : name(Name) {}
  21.  
  22.   int Points() const { return points; }
  23.   int Points(int po) { return points=po; }
  24.  
  25.   void Crypt(char *);
  26.   int Load();
  27.   int Save();
  28.  
  29. };
  30.  
  31. #endif